<?php
//include_once "kk2.php";
//$a=[111,3.5,100=>"hello",true];
//var_dump($a);
//$a=['name'=>'张三','age'=>18,'sex'=>'男'];
//print_r($a);
//$a=['kk2','name'=>'张三',0=>'kk',name=>'张三风'];
//print_r($a)
$a=[111,222,333,'eee','rrr'];
for($i=0,$len=count($a);$i<$len;++$i){
    echo $i,'.',$a[$i],"\n";
}
echo "----------------------------\n";
$a=[111,222,10=>333,'eee','rrr'];
foreach ($a as $v){

    echo $i,'.',$a[$i],"\n";
}
echo "----------------------------\n";
$a=[111,222,10=>333,'eee','rrr'];
foreach ($a as $key=>$value){

    echo $key,'----->',$value,"\n";
}
echo "----------------------------\n";
